#include "statistics.h"

#include <map>
#include <cstdio>

Statistics::Statistics() {
    totalBlock = 0;
}

void Statistics::Print(FILE* statFile, const char* msg) {

    fprintf(statFile, "%s\n", msg);
    fprintf(statFile, "Total Basic Blocks = %d\n", totalBlock);
}

void Statistics::Accumulate(const Statistics &stat) {
    totalBlock += stat.totalBlock;
}

void Statistics::Increment() {
    ++totalBlock;
}
